<?php

DEFINE( 'INTERFACE_FILE', './inc/newpage.php' );
DEFINE( 'FRAMEWORK_PATH', '/etc/web_framework/' );

/*
 * Key
 */
$config = array(
	'title'			=> '',
	'charset'		=> 'utf-8',
	'relpath'		=> '/',
	'domain'		=> 'http://www.ryantenney.com',
	'base_href'		=> 'http://www.ryantenney.com/',
	'site_name'		=> 'ryan tenney (dot) com',
	'admin_email'	=> 'self@ryantenney.com',
	'init_callback'	=> NULL
);

$config[ 'self' ] = $config[ 'domain' ] . $_SERVER[ 'PHP_SELF' ];

/*
 * Page struct declaration
 */
$config[ 'struct' ] = array(
	'wrapper1'		=> array(
		'wrapper2'		=> array(
			'header'		=> 'render_header',
			'container'		=> array(
				'description'	=> 'write_description',
				'sidebar'		=> 'render_sidebar',
				'content'		=> 'do_main'
			),
		),
	),
	'footer'		=> 'render_footer',
	'w3valid'		=> 'render_w3'
);

/*
 * Login settings
 */
$config[ 'login' ] = array(
	'enabled'			=> true,
	'login_page'		=> '/login.php',
	'link_visible'		=> true,
	'floating_link'		=> true,
	'enable_persistent'	=> true,
	'allow_cleartext'	=> false
);

/*
 * MySql connection settings
 */
$config[ 'mysql' ] = array(
	'engine'	=> DB::MYSQL,
	'server'	=> ':/var/run/mysqld/mysqld.sock',
	'username'	=> '',
	'password'	=> '',
	'database'	=> ''
);

$config[ 'session' ] = array(
	'handler'	=> SESSION_DB,
	'db_name'	=> 'php_sess'
);

/*
 * Logos
 */
$config[ 'logo' ] = array(
	'default'	=> 'png',
	'png'		=> 'img/logo.png',
	'jpeg'		=> 'img/logo.jpg'
);

/*
 * Cascading Stylesheets
 * Include a file by typing '@' then the file name
 */
$config[ 'stylesheets' ] = array(
	'@/stylesheets/cms-again.css'
);

/*
 * JavaScript Elements
 * Include a file by typing '@' then the file name
 */
$config[ 'scripts' ] = array(
	'functions'		=> '@js/functions.js'
);

/*
 * RSS feed info
 */
//$config[ 'rss' ] = array(
//	'url'	=> '',
//	'title' => '',
//	'icon'	=> ''
//);

/*
 * 
 */
$config[ 'icon' ] = '';

/*
 * Meta Tags
 */
$config[ 'meta' ] = array(
	'description'	=> 'Personal website, blog and gallery of Ryan Tenney',
	'keywords'	=> 'ryan tenney home brewing homebrewing program programming programmer '
				 . 'java php c# .net dot net dotnet vb asp javascript xhtml blog weblog '
				 . 'photography photos photographer gallery digital',
	'robots'	=> 'all',
	'author'	=> 'Ryan Tenney',
	'copyright'	=> 'All content copyright (C) 2000-2008 Ryan Tenney, unless otherwise specified.',
	'language'	=> 'en-us',
	'ICBM'		=> '43.141548, -77.548285',
	'DC.title'	=> 'ryantenney.com',
	'geo.position'	=> '43.141548;-77.548285',
	'geo.placename'	=> 'Rochester, New York, United States',
	'geo.region'	=> 'US-NY',
	'viewport'	=> 'width=800'
);

/*
 * Recaptcha keys
 */
$config[ 'recaptcha' ] = array(
	'public_key'  => '6Lc0TgEAAAAAAIiFm-Sq0yZgXuhfeizdavuGTxcO',
	'private_key' => '6Lc0TgEAAAAAAGNQwuC4p0AuYpJ3L6qxMehfu43s'
);

/*
 * Tidy Configuration
 */
$config[ 'tidy' ] = array( 
	'enabled' => false,
	'options' => array(
		'indent'           => true,
		'indent-space'     => 4,
		'markup'           => true,
		'vertical-space'   => true,
		'input-encoding'   => 'latin1',
		'output-encoding'  => 'latin1',
		'logical-emphasis' => true,
		'hide-comments'    => true
	)
);

/* toggle dev mode
$server_name = explode( ".", $_SERVER[ 'SERVER_NAME' ] );
if( $server_name[ 0 ] == "192" && $server_name[ 1 ] == "168" )
{
	$config[ 'dev_mode' ] = true;
	$config[ 'base_href' ] = "http://" . $_SERVER[ 'SERVER_ADDR' ] . $config[ 'relpath' ];
} */

/*******************************/
/* REQUIRED LINES, DO NOT EDIT */
/*******************************/
set_include_path( FRAMEWORK_PATH . PATH_SEPARATOR . get_include_path() );

require_once( INTERFACE_FILE );
require_once( "core.php" );

init_core();
/*******************************/
